package implementation.search;

import java.util.Map;


public class EntryI<K,V> implements Map.Entry<K, V> {
    private K key;
    private V value;

    public EntryI(K key, V value){
        this.key = key;
        this.value = value;
    }

    public K getKey() {
        return key;
    }

    public V getValue() {
        return value;
    }

    public V setValue(V value) {
        this.value = (V) value;
        return value;
    }

    @Override
    public String toString() {
        return "EntryI{" +
                "key=" + key +
                ", value=" + value +
                '}';
    }
}
